﻿@model ORM.Web.ViewModels.Account.RegisterViewModel
@using ORM.Resources
@{
    ViewBag.Title = "Đăng Ký";
}
<!--It is important for ajax updating captcha.-->
<!--*****************************************************-->
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<!--*****************************************************-->
<table class="contentBox" width="100%" style="height: 1000px; vertical-align: top" >
    <tr>
        <th class="boxTitle">Đăng Ký Tài Khoản</th>
    </tr>
<tr>
    <td style="vertical-align: top">
  @Html.ValidationSummary(true, ValidationMessages.Summary)
        
            Bạn hãy nhập vào các thông tin dưới đây để đăng ký tài khoản
        <br/><br/>
        <hr style="border: solid 1px gainsboro;"/>
@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @id = "user-register-form", @class = "user-info-from-cookie" }))
{
    @* @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")*@
    <div>
       
            <div class="editor-label required">
                @Html.LabelFor(m => m.Username) <span style="color: red">*</span>
            </div>
            @Html.TextBoxFor(m => m.Username)
            @Html.ValidationMessageFor(m => m.Username)
            <div class="editor-label required">
                @Html.LabelFor(m => m.Password)  <span style="color: red">*</span>
            </div>
            @Html.PasswordFor(m => m.Password)
            @Html.ValidationMessageFor(m => m.Password)
        <div style="font-style: italic; font-size: 11px">
            (Tối thiểu 6 ký tự)</div>
            <div class="editor-label required">
                @Html.LabelFor(m => m.ConfirmPassword)  <span style="color: red">*</span>
                </div>
            @Html.PasswordFor(m => m.ConfirmPassword)
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
            <div class="editor-label required">
                @Html.LabelFor(m => m.Email)  <span style="color: red">*</span>
            </div>
            @Html.TextBoxFor(m => m.Email) 
            @Html.ValidationMessageFor(m => m.Email)
            <br/><br/>
            Nhập Mã Bảo Vệ <span style="color: red">*</span>
            <div class="editor-label required">
                @CaptchaMVC.HtmlHelpers.CaptchaHelper.Captcha(Html, "Thay đổi", "", 5)               
            </div>      
        <br />
        <br />

        <div id="edit-actions" class="form-actions form-wrapper">
            <input id="edit-submit" class="colorButton" type="submit" value="Đăng ký" style="width: 120px">
        </div>
    </div>
}
    </td>
</tr>
</table>



@section Script
{
    <script type="text/javascript">
        initLogin();
    </script>
}